/**
 * 北京钉图互动科技 all right reserver
 */
package com.impress.commons.exception.rpc;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.impress.commons.exception.translate.ErrorResponseTranslatable;

/**
 * @author Wangyi
 * @since 2016年6月24日
 */
@Configuration
public class RemoteCallExceptionConfiguration {

	@Bean
	public RemoteCallExceptionAspect createRemoteCallExceptionAspect(ErrorResponseTranslatable errorResponseTranslator) {
		return new RemoteCallExceptionAspect(errorResponseTranslator);
	}

}
